<table class="standard-table">
	<tr>
    	<td>Name</td><td><?php echo $user->row()->fname.' '.$user->row()->lname;?></td>
    </tr>
    <tr>
    	<td>IC Number</td>
        <td><?php echo $user->row()->icno;?></td>
    </tr>
    <tr>
    	<td>Address</td>
        <td><?php echo $user->row()->address;?></td>
    </tr>
    <tr>
    	<td>Phone Number</td>
        <td><?php echo $user->row()->phone;?></td>
    </tr>
    <tr>
    	<td>Email</td>
        <td><?php echo $user->row()->email;?></td>
    </tr>
</table>
<table class="standard-table">
	<tr>
    	<td>Order ID</td>
        <td><?php echo $order->row()->id;?></td>
    </tr>
    <tr>
    	<td>Order Data</td>
        <td><?php echo $order->row()->order_date;?></td>
    </tr>
    <tr>
    	<td>Status</td>
        <td><?php echo $order->row()->status;?></td>
    </tr>
    <tr>
    	<td>Ship Date</td>
        <td><?php echo $order->row()->ship_date;?></td>
    </tr>
    <tr>
    	<td>Tracking Number</td>
        <td><?php echo $order->row()->track_number;?></td>
    </tr>
</table>
<table class="standard-table">
	<tr>
    	<th>#</th>
        <th>Item</th>
        <th>Quantity</th>
        <th>Price (RM)</th>
    </tr>
    <?php $i=1;
	foreach($order_list->result_array() as $item){?>
    <tr>
    	<td><?php echo $i++;?></td>
        <td><?php $product = $this->tbl_product_model->get_one($item['product_id']);
			echo $item['product_id'].' '.$product['nama_product'];?></td>
        <td><?php echo $item['quantity'];?></td>
        <td><?php echo $item['price'];?></td>
    </tr>
    <?php }?>
    <tr><td></td>
    	<td></td>
        <td>Discount</td>
        <td></td>
    </tr>
    <tr><td></td>
    	<td></td>
        <td>Total Price</td>
        <td><?php echo $order->row()->total_price;?></td>
    </tr>
    <tr><td></td>
    	<td></td>
        <td>Total Price After Discount</td>
        <td><?php echo $order->row()->diskaun_price;?></td>
    </tr>
</table>